package com.example.demo.component;

import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

@Component
public class UserComponent {
    public void print(){
        System.out.println("UserComponent ...");
    }

    // 测试Student s4 方法中 name 的用法
//    @Bean
//    public String name(){
//        return "qianliu";
//    }
}
